<template>
  <div class="alert" role="alert" v-bind:class="'alert-' + variant">
    {{ message }}
  </div>
</template>

<script>
  export default {
    props: ['variant', 'message'] // 接收父组件传递来的 variant、message数据
  }
</script>

<style scoped>

</style>
